package pers.ljf.escloud.dao.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author laijinfan1
 * @since 2022-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_bucket")
public class Bucket implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 存储类型，0未知，1阿里云
     */
    private Integer type;

    /**
     * 存储结点唯一标识
     */
    private String endpoint;

    /**
     * bucket名
     */
    private String bucketName;

    /**
     * 密钥id
     */
    private String accessKeyId;

    /**
     * 密钥value
     */
    private String accessKeySecret;

    /**
     * 所属企业id
     */
    private Long enterpriseId;

    private Boolean isDelete;

}
